package com.zat.mes.andrmes.dofun.work.adapter

import android.text.TextUtils
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zat.mes.andrmes.R
import com.zat.mes.andrmes.data.GetBomDetail
import com.zat.mes.andrmes.data.GetPackBean

/**
 * @author zy
 * @date :2020-02-22 09:28
 * @description: 领料通知单详情
 */
class GetBomNotifiDetailAdapter(layoutResId: Int) :
    BaseQuickAdapter<GetBomDetail, BaseViewHolder>(layoutResId), LoadMoreModule {

    override fun convert(helper: BaseViewHolder, item: GetBomDetail) {
        helper.setText(R.id.tvYarnInformNo,"单号："+item?.yarnInformNo)
            .setText(R.id.tvStyleNo,"款号："+item?.styleNo)
            .setText(R.id.tvYarnLotID,"纱批号："+item?.yarnLotID)
            .setText(R.id.tvNformWeight,"领用单重量："+item?.informWeight)
            .setText(R.id.tvStoreID,"库位编号："+item?.storeID)
            .setText(R.id.tvOrderNo,"制单号："+item?.orderNo)
            .setText(R.id.tvRemark1,"实际缴库数："+item?.remark1)
            .setText(R.id.tvLossRate,"损耗率："+item?.lossRate+"%")
            .setText(R.id.tvOpertime,item?.opertime)
    }
}